import { lazy } from "react";
import a1 from '../assets/YiQixiuImage/1.png'
import a2 from '../assets/YiQixiuImage/2.png'
import a3 from '../assets/YiQixiuImage/3.png'
import a4 from '../assets/YiQixiuImage/4.png'
import a5 from '../assets/YiQixiuImage/5.png'
import a6 from '../assets/YiQixiuImage/6.png'
import a7 from '../assets/YiQixiuImage/7.png'
import a8 from '../assets/YiQixiuImage/8.png'
import a9 from '../assets/YiQixiuImage/9.png'
import a10 from '../assets/YiQixiuImage/10.png'
import a11 from '../assets/YiQixiuImage/11.png'
import a12 from '../assets/YiQixiuImage/12.png'
import a13 from '../assets/YiQixiuImage/13.png'
import a14 from '../assets/YiQixiuImage/14.png'
import a15 from '../assets/YiQixiuImage/15.png'
import a16 from '../assets/YiQixiuImage/16.png'
import a17 from '../assets/YiQixiuImage/17.png'
import a18 from '../assets/YiQixiuImage/18.png'
export const homeRouter = [
    {
        id:'1',
        path:'/home/winnow',
        element:lazy(()=>import('../page/Menu/Winnow')),
        title:'精选推荐',
        img:a1
    },
    {
        id:'2',
        path:'/home/template',
        element:lazy(()=>import('../page/Menu/Template')),
        title:'模版中心',
        img:a2
    },
    {
        id:'3',
        path:'/home/video',
        element:lazy(()=>import('../page/Menu/Video')),
        title:'数字人视频',
        img:a3
    },
    {
        id:'4',
        path:'/home/ai',
        element:lazy(()=>import('../page/Menu/AI')),
        title:'AI创作',
        img:a4
    },

    // ------------------------------------------创意设计----------------------------------------
    {
        key: 'g2',
        title: '创意设计',
        type: 'group',
    },
    {
        id:'5',
        path:'/home/h5',
        element:lazy(()=>import('../page/Menu/H5')),
        title:'H5',
        img:a5
    },
    {
        id:'6',
        path:'/home/placard',
        element:lazy(()=>import('../page/Menu/Placard')),
        title:'海报',
        img:a6
    },
    {
        id:'7',
        path:'/home/long_page',
        element:lazy(()=>import('../page/Menu/Long_page')),
        title:'长页',
        img:a7
    },
    {
        id:'8',
        path:'/home/form',
        element:lazy(()=>import('../page/Menu/Form')),
        title:'表单',
        img:a8
    },
    {
        id:'9',
        path:'/home/interaction',
        element:lazy(()=>import('../page/Menu/Interaction')),
        title:'互动',
        img:a9
    },
    {
        id:'10',
        path:'/home/corpuscle',
        element:lazy(()=>import('../page/Menu/Corpuscle')),
        title:'电子画册',
        img:a10
    },
    {
        id:'11',
        path:'/home/video_tow',
        element:lazy(()=>import('../page/Menu/Video_tow')),
        title:'视频',
        img:a11
    },
    {
        id:'12',
        path:'/home/tool',
        element:lazy(()=>import('../page/Menu/Tool')),
        title:'作图工具',
        img:a12
    },
    {
        id:'13',
        path:'/home/design',
        element:lazy(()=>import('../page/Menu/Design')),
        title:'定制设计',
        img:a13
    },

    // ------------------------------------------其他----------------------------------------
    {
        key: 'g2',
        title: '其他',
        type: 'group',
    },
    {
        id:'14',
        path:'/home/work',
        element:lazy(()=>import('../page/Menu/Work')),
        title:'工作台',
        img:a14
    },
    {
        id:'15',
        path:'/home/collect',
        element:lazy(()=>import('../page/Menu/Collect')),
        title:'我的收藏',
        img:a15
    },
    {
        id:'16',
        path:'/home/firm',
        element:lazy(()=>import('../page/Menu/Firm')),
        title:'企业获客',
        img:a16
    },
    {
        id:'17',
        path:'/home/material',
        element:lazy(()=>import('../page/Menu/Material')),
        title:'正版素材',
        img:a17
    },
    {
        id:'18',
        path:'/home/become',
        element:lazy(()=>import('../page/Menu/Become')),
        title:'成为设计师',
        img:a18
    }
    
]

export const router = [
    {
        path:'/',
        to:'/home/winnow',
    },
    {
        path:'/home',
        element:lazy(()=>import('../page/Home')),
        children:homeRouter
    },
    {
        path:'/new_ai',
        element:lazy(()=>import('../components/new/New_AI')),
    },
    {
        path:'/new_placard',
        element:lazy(()=>import('../components/new/New_Placard')),
    },
    {
        path:'/login',
        element:lazy(()=>import('../page/Login'))
    },
    {
        path:'*',
        element:lazy(()=>import('../page/Error'))
    }
]

export default router